package com.jzo2o.customer.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum YesOrNoEnum {
    YES(1,"是"),
    NO(0, "否");
    private final int status;
    private final String description;

    public boolean equals(Integer status) {
        return this.status == status;
    }

    public boolean equals(YesOrNoEnum enableStatusEnum) {
        return enableStatusEnum != null && enableStatusEnum.status == this.getStatus();
    }
}
